package com.ztman.router.common.dagger.component;

import android.app.Activity;

import com.ztman.router.common.dagger.module.FragmentModule;
import com.ztman.router.common.dagger.scope.FragmentScope;

import dagger.Component;

/**
 * @Title:FragmentComponent
 * @Package:com.ztman.router.common.dagger.component
 * @Description:
 * @Auther:YJH
 * @Email:yuannunhua@gmail.com
 * @Date:2018/5/1015:25
 */
@FragmentScope
@Component(dependencies = AppComponent.class, modules = FragmentModule.class)
public interface FragmentComponent {

    /**
     * 功能：获取Activity实例
     *
     * @return Activity
     */
    Activity getActivity();

    /**
     * 功能：注入MainPagerFragment所需的依赖
     *
     * @param mainPagerFragment MainPagerFragment
     */
//    void inject(MainPagerFragment mainPagerFragment);

}
